feat: add Command Code support via .commandcode/ mirror - #5
Open
YunyunZhai wants to merge 2 commits into
Open
Conversation
Add a Command Code-native mirror of the OpenCode workflow so the same OpenSpec intent-driven template can be used from Command Code. - .commandcode/skills/: OpenSpec lifecycle skills with tool names adapted to Command Code tools (ask_user_question, todo_write, agent, activate_skill). - .commandcode/commands/: opsx-* slash commands. - .commandcode/agents/: adversarial-author, adversarial-reviewer, senior-dev, senior-qa translated to Command Code subagent frontmatter. - README: document Command Code support. Command Code already discovers the shared skills under .agents/skills/, so the .commandcode/ mirror only needs the OpenSpec lifecycle skills and agents that live under OpenCode's .opencode/ directory. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
Document how to install the template for both OpenCode and Command Code, including the per-tool directory mapping and Command Code validation step. Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds native Command Code support to this template by mirroring the OpenCode workflow into a
.commandcode/directory. Command Code discovers skills, slash commands, and subagents from.commandcode/(and already loads shared skills from.agents/skills/), but it does not read.opencode/.Changes
.commandcode/skills/— the OpenSpec lifecycle skills, with tool names adapted to Command Code's native tools:AskUserQuestion tool→ask_user_questiontoolTodoWrite tool→todo_writetoolTask tool(subagent_type: "general-purpose") →agenttool (subagent_type: "general")Skill tool→activate_skilltoolopencode subagents/OpenCode subagents→Command Code subagents.commandcode/commands/— theopsx-*slash commands..commandcode/agents/—adversarial-author,adversarial-reviewer,senior-dev,senior-qa, translated to Command Code subagent frontmatter (dropping OpenCode-specificmode: subagent,permission, and OpenCode model ids).README.md— documents Command Code support and the.commandcode/mirror.Why a mirror instead of shared skills
The OpenSpec lifecycle skills currently live in
.opencode/skills/, which Command Code cannot discover. The shared collaboration skills (grill-me, c4-diagrams, etc.) already live in.agents/skills/and load in both tools unchanged, so they are not duplicated.Validation
cmd skills listin the template directory reports 19 project skills loading cleanly (10 from.commandcode/skills/+ 9 from.agents/skills/), with no failures..opencode/and.agents/contents are unchanged, so existing OpenCode users are unaffected.Co-authored-by: CommandCodeBot noreply@commandcode.ai